package com.mall.common.constants;

/**
 * @author xyl
 * @date 2021-02-09 1:10
 */
public class Constants {

    /**
     * 图形验证码过期时间2分钟
     **/
    public static final int CAPTCHA_EXPIRE_TIME = 2;
    /*注册邮箱码默认有效期为10分钟*/
    public static final int REGISTER_MAIL_EXPIRE_TIME = 10;

    public static final String ROLE_USER = "ROLE_USER";
    public static final String ROLE_ADMIN = "ROLE_ADMIN";
    public static final String ROLE_COMMON_ADMIN = "ROLE_COMMON_ADMIN";


    public static final String REDIS_KEY_CAPTCHA_PREFIX = "captcha-";

    public static final String MAIL_KEY_CAPTCHA_PREFIX = "mail-";
    /*验证邮箱key前缀*/
    public static final String VERIFY_MAIL_KEY_CAPTCHA_PREFIX = "verify-mail-";
    /*注册邮箱码key前缀*/
    public static final String REGISTER_MAIL_CAPTCHA_PREFIX = "register-mail-";

    /*图片存储的本地路径*/
    public static final String NATIVE_IMAGE_PATH = "C:/image/";

    /*图片虚拟访问路径*/
    public static final String VIRTUAL_IMAGE_PATH = "/mall/image/";

    /*发送邮箱验证码的主邮箱*/
    public static final String SEND_EMAIL = "1973812565@qq.com";

    /*默认头像*/
    public static final String DEFAULT_AVATAR = "https://cdn.cnbj1.fds.api.mi-img.com/user-avatar/5a2b6c9a-1b85-416c-bedd-f90c67e3e376.jpg";

    public static final int ORDER_STATUS_0 = 0;   //待付款
    public static final int ORDER_STATUS_1 = 1;   //已付款
    public static final int ORDER_STATUS_2 = 2;   //运输中
    public static final int ORDER_STATUS_3 = 3;   //已收货
}
